import { Base } from '../../../utils/base.js';
//var base =require('../../utils/base.js').base;
class Review extends Base {
  constructor() {
    super();
  }
  getOrder(orderid,callback) {
    var that = this;
    var params = {
      url: 'order/evaluate/'+orderid,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(params);
  }
  postEvaluate(addr, callback) {
    console.log(addr);
    var that = this;
    var params = {
      url: 'postEvaluate',
      type: 'post',
      data: addr,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(params);
  }

};

export { Review };
